<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <wo-people-nucelic-list ref="peopleList"></wo-people-nucelic-list>
  </j-modal>
</template>

<script>

import WoPeopleNucelicList from "../people/WoPeopleNucelicList";
  export default {
    name: 'WoPeopleNuceliModal',
    components: {
      WoPeopleNucelicList,
    },
    data () {
      return {
        title:'人员明细',
        width:'90%',
        visible: false,
        disableSubmit: true
      }
    },
    methods: {
      show(record){
        this.$nextTick(()=> {
          this.$refs.peopleList.loadPeople(record);
        })
        this.visible = true;
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {

      },
      submitCallback(){
        this.$emit('ok');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      }
    }
  }
</script>